function func_convert_to_club_dc_list_by_item_trait_nbr(itemNbr, traitNbr, storeId, storeType, itemStoreJson, itemDcJson, trait_store_map, changeType) {
    var convert_to_club_dc_list_by_item_trait_nbr_result = {}
    var convert_to_club_dc_list_by_item_trait_nbr_List = []
    var convert_to_club_dc_with_in_trait_nbr_item_store_json_list = []
    if (!isNull(traitNbr) && traitNbr == 'ALL') {
        if (!isNull(itemStoreJson)) {
            var itemStoreJsonObj = JSON.parse(itemStoreJson);
            itemStoreJsonObj.forEach(function (isj) {
                convert_to_club_dc_list_by_item_trait_nbr_List.push(isj.store_id + '-' + 1);
                convert_to_club_dc_with_in_trait_nbr_item_store_json_list.push(isj);
            })
        }
        if ((changeType == 'cost' || changeType == 'status' || changeType == 'vnpkqty') && !isNull(itemDcJson)) {
            var itemDcJsonObj = JSON.parse(itemDcJson);
            itemDcJsonObj.forEach(function (idj) {
                convert_to_club_dc_list_by_item_trait_nbr_List.push(idj.dc_id + '-' + storeType);
                convert_to_club_dc_with_in_trait_nbr_item_store_json_list.push(idj);
            })
        }
    } else if (!isNull(traitNbr)) {
        if (!isNull(trait_store_map) && trait_store_map.containsKey(traitNbr)) {
            var clubList = trait_store_map.get(traitNbr);
            var itemStoreJsonObj = JSON.parse(itemStoreJson);
            if (!isNull(clubList)) {
                clubList.forEach(function (club) {
                    itemStoreJsonObj.forEach(function (isj) {
                        if (club == isj.store_id) {
                            convert_to_club_dc_list_by_item_trait_nbr_List.push(isj.store_id + '-' + 1);
                            convert_to_club_dc_with_in_trait_nbr_item_store_json_list.push(isj);
                        }
                    })
                })
            }
        }
    } else if (!isNull(storeId)) {
        if (storeType == 1) {
            if (!isNull(itemStoreJson)) {
                var func_convert_to_club_dc_list_by_item_trait_nbr_flag = false;
                var itemStoreJsonObj = JSON.parse(itemStoreJson);
                itemStoreJsonObj.forEach(function (isj) {
                    if (!func_convert_to_club_dc_list_by_item_trait_nbr_flag && storeId == isj.store_id) {
                        convert_to_club_dc_list_by_item_trait_nbr_List.push(isj.store_id + '-' + 1);
                        convert_to_club_dc_with_in_trait_nbr_item_store_json_list.push(isj);
                        func_convert_to_club_dc_list_by_item_trait_nbr_flag = true;
                    }
                })
            }
        } else if ((changeType == 'cost' || changeType == 'status' || changeType == 'vnpkqty') && storeType == 2) {
            var func_convert_to_club_dc_list_by_item_trait_nbr_flag = false;
            var itemDcJsonObj = JSON.parse(itemDcJson);
            itemDcJsonObj.forEach(function (idj) {
                if (!func_convert_to_club_dc_list_by_item_trait_nbr_flag && storeId == idj.dc_id) {
                    convert_to_club_dc_list_by_item_trait_nbr_List.push(idj.dc_id + '-' + storeType);
                    convert_to_club_dc_with_in_trait_nbr_item_store_json_list.push(idj);
                }
            })
        }
    }
    convert_to_club_dc_list_by_item_trait_nbr_result.convert_to_club_dc_list_by_item_trait_nbr_List = convert_to_club_dc_list_by_item_trait_nbr_List;
    convert_to_club_dc_list_by_item_trait_nbr_result.convert_to_club_dc_with_in_trait_nbr_item_store_json_list = convert_to_club_dc_with_in_trait_nbr_item_store_json_list;
    return convert_to_club_dc_list_by_item_trait_nbr_result;
}